package com.easylinkin.sm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.sm.entity.Log;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 日志管理Mapper
 *
 * @author yezhihao
 * @since develop,  2019/08/27
 */
@Mapper
public interface LogMapper extends BaseMapper<Log> {

  List<Map<String, Object>> getLogModules(@Param("module") String module,
      @Param("language") String language);

  List<Log> getAllLog(@Param("modifier") String modifier,
      @Param("customerId") Long customerId, @Param("moduleId") Long moduleId,
      @Param("status") Boolean status, @Param("beginTime") String beginTime,
      @Param("endTime") String endTime, Page page);

  Map<String,String> getDetails(@Param("id") Long id);
}
